]> dgit.raspbian.org Git - gnome-shell.git/commit
switcherPopup: Implement functions to add and remove accessible states
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 26 Apr 2018 09:19:40 +0000 (11:19 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 26 Feb 2020 22:46:51 +0000 (22:46 +0000)
commitbfb0bc7a291af8ba75ab3d8c99bc1616e08db536
treee605a2a480ec69f625d16acae50ca1fec117900d
parentc00f1d040bbb6cd5449fda14ea0992914847c821
switcherPopup: Implement functions to add and remove accessible states

Set the accessible states of the switcherList items by calling a
function instead of manipulating class-internal variables from outside
the class, which is considered bad practice.

The check whether the item at `_selectedIndex` exists can also be
removed since we always select a new index after an item was removed
(i.e. an app was closed) and destroy the alt-tab switcher right away if
no more items exist (see `SwitcherPopup._itemRemovedHandler`).

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/167
js/ui/altTab.js
js/ui/switcherPopup.js